$(document).ready(function () {


});

window.onload = function () {
    var thisURL = document.URL;
    var getval = thisURL.split('?')[1];
    userId = getval.split("=")[1];

    var modifyContentFrame = window.frames["modifyUserInfoFrame"];

    if (modifyContentFrame.contentWindow != null) {
        modifyContentFrame = modifyContentFrame.contentWindow;
    }
    modifyContentFrame.initUserInfo(userId);
}

function showModifyUserHeadImg(e) {
    initClass();
    document.getElementById("modifyUserHeadImgFrame").style.display = "block";
    document.getElementById("modifyUserInfoFrame").style.display = "none";
    e.setAttribute("class", "list-group-item active");
}

function showModifyUserInfo(e) {
    initClass();
    document.getElementById("modifyUserHeadImgFrame").style.display = "none";
    document.getElementById("modifyUserInfoFrame").style.display = "block";
    e.setAttribute("class", "list-group-item active");
}

function initClass() {
    var list = document.getElementsByClassName("list-group-item");
    for (var i = 0; i < list.length; i++) {
        list[i].setAttribute("class", "list-group-item");
    }
}





